package cn.maidouya.hrm.feignClient;

import cn.maidouya.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "HRM-SYSTEM",fallbackFactory = SystemLoginUserFeign.class)
@RequestMapping("/system")
public interface ISystemLoginUserFeign {
    @PostMapping("/aouthSystem/{id}")
    AjaxResult loadLoginUserById(@PathVariable("id") Long id);
}